<template>
    <div>
        <Button @click="testEmit">触发事件</Button>
    </div>
</template>

<script type="text/ecmascript-6">
    export default{
        components: {},
        data () {
            return {
                a:123456
            }
        },
        methods: {
            testEmit:function () {
                this.$emit('myEvent',this.a)
            }
        },
        created(){

        },
        mounted(){

        }
    }
</script>

<style scoped>

</style>